home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4271 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: gryphon.phoenix.net!usenet
  2. From: brucew@phoenix.net (Bruce Wedding)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: HELP!! BAMBOOZLED BEGINNER!!
  5. Date: Fri, 02 Feb 1996 21:56:39 GMT
  6. Organization: BranPaul Systems
  7. Message-ID: <4etv35$nvf@gryphon.phoenix.net>
  8. References: <Pine.OSF.3.91l.960130235948.20497A-100000@saul3.u.washington.edu> <4eru59$s8t@gryphon.phoenix.net> <TANMOY.96Feb2114543@qcd.lanl.gov>
  9. NNTP-Posting-Host: dial89.phoenix.net
  10. X-Newsreader: Moe's Newsreader    
  11.  
  12. >   change this to scanf("%U", &i);
  13. >
  14. >What is %U? Did you mean %lu?
  15.  
  16. Well, that is what I had originally.  In my quest to make sure it
  17. was correct, I mistakenly assumed that Borland wouldn't add
  18. extensions to an ANSI function.  :(
  19.  
  20. >    scanned = scanf("%U*%c", &power);
  21.  
  22. > Did you mean %*c by any chance?
  23.  
  24. Indeed I did Tanmoy.  Good eye.  You know, sometimes I wish this
  25. undefined behavior resulted in the catastrophies that it is
  26. always claimed to.  Then this code would have never been posted
  27. incorrectly.
  28.  
  29.  
  30. Bruce D. Wedding                        Have Compiler, Will Travel!
  31.               Perspicacious Programming Performed Promptly
  32. Katy, Texas, USA, Planet Earth, Milkyway Galaxy, Known Universe
  33.  
  34.